<?php
namespace app\common\controller;

use app\back\model\ConfigModel;
use think\Request;

///后台基类控制器
class AdminBase extends CommonBase
{
    public function __construct(Request $request = null)
    {
        ///
        parent::__construct($request);

        ///后台公共配置
        $configModel = new ConfigModel();
        $this->assign([
            'web_comm_header_title'=>$configModel->getWebTitle()
        ]);

        ///设置后台当前使用主题
        $this->view->config('view_path','./template/admin/');
    }
}